<?php
/**
 * Trainingofferadmin_Data_Loginredirect
 * login redirect
 * @author Adrian Stolarski
 */
class Manageuser_Data_Loginredirect implements Manageuser_Data_Redirectable{
    
    /**
     *
     * @var type $action_handler
     * login redirect action handler
     */
    public $action_handler;
    
    /**
     * constructor()
     */
    public function __construct() {
        $this->action_handler = new Login_Data_Loginredirect;
    }
    
    /**
     * redirect_action()
     * destroy session and login redirect
     * @param array $variables
     */
    public function redirect_action(array $variables = null) {
        session_destroy();
        $this->action_handler->main($variables);
    }

}
